home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / util / gnu / bison_1_22.lha / bison-1.22 / SMakefile < prev    next >
Makefile  |  1995-01-20  |  6KB  |  199 lines

  1. # Makefile for bison
  2. # Copyright (C) 1988, 1989, 1991, 1993 Bob Corbett and Free Software Foundation, Inc.
  3. # This file is part of Bison, the GNU Compiler Compiler.
  4. # Bison is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8. # Bison is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11. # GNU General Public License for more details.
  12. # You should have received a copy of the GNU General Public License
  13. # along with Bison; see the file COPYING.  If not, write to
  14. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  15.  
  16. #### Start of system configuration section. ####
  17.  
  18. srcdir = .
  19. VPATH =
  20.  
  21. CC = sc
  22. WMERGE = wmerge
  23. INSTALL = copy clone
  24. INSTALL_PROGRAM =
  25. INSTALL_DATA =
  26. MAKEINFO = makeinfo
  27.  
  28. # Things you might add to DEFS:
  29. # STDC_HEADERS        If you have ANSI C headers and libraries.
  30. # HAVE_STRING_H        If you don't have ANSI C headers but have string.h.
  31. # HAVE_MEMORY_H        If you don't have ANSI C headers and have memory.h.
  32. # HAVE_STRERROR        If you have strerror function.
  33. DEFS = define=_STRICT_ANSI define=STDC_HEADERS
  34.  
  35. CFLAGS = optimize noicons
  36. LDFLAGS =
  37.  
  38. LIBS =
  39.  
  40. # Some System V machines do not come with libPW.  If this is true, use
  41. # the GNU alloca.o here.
  42. ALLOCA = ansialloca.o
  43.  
  44. prefix = Programmer:other
  45. exec_prefix = $(prefix)
  46.  
  47. # where the installed binary goes
  48. bindir = $(exec_prefix)/bin
  49.  
  50. # where the parsers go
  51. datadir = $(prefix)/lib
  52.  
  53. # where the info files go
  54. infodir = $(prefix)/info
  55.  
  56. # where manual pages go and what their extensions should be
  57. mandir = $(prefix)/man/man$(manext)
  58. manext = 1
  59.  
  60. #### End of system configuration section. ####
  61.  
  62. DISTFILES = COPYING ChangeLog Makefile.in configure configure.in \
  63.     REFERENCES bison.1 bison.rnh configure.bat \
  64.     bison.simple bison.hairy \
  65.     LR0.c allocate.c closure.c conflicts.c derives.c \
  66.     files.c getargs.c gram.c lalr.c lex.c main.c nullable.c \
  67.     output.c print.c reader.c reduce.c symtab.c version.c \
  68.     warshall.c files.h gram.h lex.h machine.h new.h state.h \
  69.     symtab.h system.h types.h bison.cld build.com vmsgetargs.c \
  70.     vmshlp.mar README INSTALL bison.texinfo bison.info* texinfo.tex \
  71.     getopt.c getopt.h getopt1.c alloca.c mkinstalldirs
  72.  
  73. # This rule allows us to supply the necessary -D options
  74. # in addition to whatever the user asks for.
  75. .c.o:
  76.     $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) $<
  77.  
  78. # names of parser files
  79. PFILE = bison.simple
  80. PFILE1 = bison.hairy
  81.  
  82. PFILES = define=XPFILE="$(datadir)/$(PFILE)" \
  83.      define=XPFILE1="$(datadir)/$(PFILE1)"
  84.  
  85. OBJECTS = ansiLR0.o ansiallocate.o ansiclosure.o ansiconflicts.o \
  86.       ansiderives.o ansifiles.o ansigetargs.o ansigram.o\
  87.       ansilalr.o ansilex.o ansimain.o ansinullable.o \
  88.       ansioutput.o ansiprint.o ansireader.o ansireduce.o ansisymtab.o \
  89.       ansiwarshall.o version.o ansigetopt.o getopt1.o $(ALLOCA)
  90.  
  91. all: bison
  92.  
  93. clean:
  94.     -delete \#?.(bak|o|lnk) ansi\#?
  95.  
  96. veryclean: clean
  97.     -delete bison bison.s1
  98.  
  99. bison: $(OBJECTS)
  100.     $(CC) $(LDFLAGS) link to $@ $(OBJECTS) $(LIBS)
  101.  
  102. install: bison ansibison.simple bison.hairy $(ALLOCA)
  103.     $(INSTALL) bison $(bindir)
  104.     $(INSTALL) ansibison.simple bison.hairy $(datadir)/bison.simple
  105.     $(INSTALL) $(ALLOCA) $(datadir)/alloca.o
  106.  
  107. ansibison.simple: bison.simple bison.sch
  108.     $(WMERGE) bison.simple bison.sch ansibison.simple
  109.  
  110. # This file is different to pass the parser file names to the compiler.
  111. ansifiles.o: ansifiles.c
  112.     $(CC) $(PFILES) $(DEFS) $(CPPFLAGS) $(CFLAGS) \
  113.        $(srcdir)/ansifiles.c $(OUTPUT_OPTION)
  114. ansifiles.c: files.c files.ch system.h files.h ansinew.h gram.h
  115.     $(WMERGE) files.c files.ch ansifiles.c
  116.  
  117. ansinew.h: new.h new.hch
  118.     $(WMERGE) new.h new.hch ansinew.h
  119.  
  120. ansialloca.o: ansialloca.c
  121. ansialloca.c: alloca.c alloca.ch
  122.     $(WMERGE) alloca.c alloca.ch ansialloca.c
  123.  
  124. ansiallocate.o: ansiallocate.c
  125. ansiallocate.c: allocate.c allocate.ch
  126.     $(WMERGE) allocate.c allocate.ch ansiallocate.c
  127.  
  128. ansiclosure.o: ansiclosure.c
  129. ansiclosure.c: closure.c closure.ch system.h machine.h ansinew.h gram.h
  130.     $(WMERGE) closure.c closure.ch ansiclosure.c
  131.  
  132. ansiconflicts.o: ansiconflicts.c
  133. ansiconflicts.c: conflicts.c conflicts.ch system.h machine.h ansinew.h files.h gram.h state.h
  134.     $(WMERGE) conflicts.c conflicts.ch ansiconflicts.c
  135.  
  136. ansiderives.o: ansiderives.c
  137. ansiderives.c: derives.c derives.ch system.h ansinew.h types.h gram.h
  138.     $(WMERGE) derives.c derives.ch ansiderives.c
  139.  
  140. ansiLR0.o: ansiLR0.c
  141. ansiLR0.c: LR0.c LR0.ch system.h machine.h ansinew.h gram.h state.h
  142.     $(WMERGE) LR0.c LR0.ch ansiLR0.c
  143.  
  144. ansigetargs.o: ansigetargs.c
  145. ansigetargs.c: getargs.c getargs.ch system.h files.h
  146.     $(WMERGE) getargs.c getargs.ch ansigetargs.c
  147.  
  148. ansigram.o: ansigram.c
  149. ansigram.c: gram.c gram.ch
  150.     $(WMERGE) gram.c gram.ch ansigram.c
  151.  
  152. ansilalr.o: ansilalr.c
  153. ansilalr.c: lalr.c lalr.ch system.h machine.h types.h state.h ansinew.h gram.h
  154.     $(WMERGE) lalr.c lalr.ch ansilalr.c
  155.  
  156. ansilex.o: ansilex.c
  157. ansilex.c: lex.c lex.ch system.h files.h symtab.h lex.h
  158.     $(WMERGE) lex.c lex.ch ansilex.c
  159.  
  160. ansimain.o: ansimain.c
  161. ansimain.c: main.c main.ch system.h machine.h
  162.     $(WMERGE) main.c main.ch ansimain.c
  163.  
  164. ansinullable.o: ansinullable.c
  165. ansinullable.c: nullable.c nullable.ch system.h types.h gram.h ansinew.h
  166.     $(WMERGE) nullable.c nullable.ch ansinullable.c
  167.  
  168. ansioutput.o: ansioutput.c
  169. ansioutput.c: output.c output.ch system.h machine.h ansinew.h files.h gram.h state.h
  170.     $(WMERGE) output.c output.ch ansioutput.c
  171.  
  172. ansiprint.o: ansiprint.c
  173. ansiprint.c: print.c print.ch system.h machine.h ansinew.h files.h gram.h state.h
  174.     $(WMERGE) print.c print.ch ansiprint.c
  175.  
  176. ansireader.o: ansireader.c
  177. ansireader.c: reader.c reader.ch system.h files.h ansinew.h symtab.h lex.h gram.h
  178.     $(WMERGE) reader.c reader.ch ansireader.c
  179.  
  180. ansisymtab.o: ansisymtab.c
  181. ansisymtab.c: symtab.c symtab.ch system.h ansinew.h symtab.h gram.h
  182.     $(WMERGE) symtab.c symtab.ch ansisymtab.c
  183.  
  184. ansiwarshall.o: ansiwarshall.c
  185. ansiwarshall.c: warshall.c warshall.ch system.h machine.h
  186.     $(WMERGE) warshall.c warshall.ch ansiwarshall.c
  187.  
  188. ansigetopt.o: ansigetopt.c
  189. ansigetopt.c: getopt.c getopt.ch
  190.     $(WMERGE) getopt.c getopt.ch ansigetopt.c
  191.  
  192. ansireduce.o: ansireduce.c
  193. ansireduce.c: reduce.c reduce.ch system.h machine.h files.h ansinew.h gram.h
  194.     $(WMERGE) reduce.c reduce.ch ansireduce.c
  195.